<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    var name = "123"
    function info(){
        var name = "456"
        console.log(this.name)
    }
    info()
    info = {
        name: "hzc",
        func: function (){
            var that = this

            function test() {
                console.log(this.name)
            }

            test()
        }
    }
    info.func()
</script>
</body>
</html>